<template>
	<view class="center">
		<image class="img" :src="img" mode=""></image>
	</view>
</template>

<script setup>
	import {
		onLoad
	} from '@dcloudio/uni-app'
	import {
		base64Img
	} from '@/tools/tools.js'
	import {
		ref
	} from "vue"
	const img = ref()
	onLoad((res) => {
		console.log(res);
		img.value = base64Img(res.id)
	})
</script>

<style lang="scss" scoped>
	.center {
		background-color: black;
		display: flex;
		justify-content: center;
		flex-direction: column;
		min-height: 100vh;
		.img {
			width: 100vw;
		}
	}
</style>